package com.neusoft.ch6.demo2;

public class Person {
	// 属性（成员变量）
	// 姓名属性
	public String perName;
	// 性别
	protected String perSex;
	// 年龄
	private int perAge;
	// 身份证号
	private String perCardId;

	// 行为（成员方法）
	/**
	 * 睡觉行为
	 */
	private void doSleeping() {
		System.out.println("I am sleeping...");
	}

	/**
	 * 工作行为
	 */
	protected void doWorking() {
		System.out.println("I am Working...");
	}

	/**
	 * 吃饭行为
	 */
	public void doEating() {
		System.out.println("I am eating...");
	}
	////////////////////////////

	public String getPerName() {
		return perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}

	public String getPerSex() {
		return perSex;
	}

	public void setPerSex(String perSex) {
		this.perSex = perSex;
	}

	public int getPerAge() {
		return perAge;
	}

	public void setPerAge(int perAge) {
		this.perAge = perAge;
	}

	public String getPerCardId() {
		return perCardId;
	}

	public void setPerCardId(String perCardId) {
		this.perCardId = perCardId;
	}

}
